#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "./sources/handls/hanlddataitem.h"
#include "./sources/seriels/serialdataitem.h"
#include "./sources/fpcs/pcfdataitem.h"
#include "./sources/gipos/gpiodataitem.h"
#include "./sources/handls/hanlddataitem.h"
#include "./sources/logs/printlogitem.h"
#include "./sources/coms/comdataitem.h"
#include "./sources/sins/bowenview.h"
#include "./sources/configs/configfileitem.h"



int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    QGuiApplication app(argc, argv);
    qmlRegisterType<HanldDataitem>("HanldDataitem", 1, 0, "HanldDataitem");
    qmlRegisterType<SerialDataitem>("SerialDataitem", 1, 0, "SerialDataitem");
    qmlRegisterType<PcfDataitem>("PcfDataitem", 1, 0, "PcfDataitem");
    qmlRegisterType<GpioDataitem>("GpioDataitem", 1, 0, "GpioDataitem");
    qmlRegisterType<HanldDataitem>("HanldDataitem", 1, 0, "HanldDataitem");
    qmlRegisterType<PrintLogitem>("PrintLogitem", 1, 0, "PrintLogitem");
    qmlRegisterType<ComDataItem>("ComDataItem", 1, 0, "ComDataItem");
    qmlRegisterType<BowenView>("BowenView", 1, 0, "BowenView");
    qmlRegisterType<ConfigFileitem>("ConfigFileitem", 1, 0, "ConfigFileitem");



    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
    if (engine.rootObjects().isEmpty())
        return -1;

    return app.exec();
}
